#include<stdio.h>
int main()
{
	int n,i=1,k,m;
	scanf("%d",&n);
	if(n<0)
  	{
		printf("fu");
		n=-n;
	}
	k=n;
	while(k>9)
	{
		i*=10;
		k/=10;
	}
	for(;i!=0;)
	{
		m=n/i;
		switch(m)
		{
			case 0:printf(" ling");break;
			case 1:printf(" yi");break;
			case 2:printf(" er");break;
			case 3:printf(" san");break;
			case 4:printf(" si");break;
			case 5:printf(" wu");break;
			case 6:printf(" liu");break;
			case 7:printf(" qi");break;
			case 8:printf(" ba");break;
			case 9:printf(" jiu");break;
		}
		n=n%i;
		i/=10;
	}
	return 0;
}
